package com.cxq.boot.exception;

//定义异常信息
public enum CustomizeErrorCode implements ICustomizeErrorCode {
    //问题异常信息
    QUESTION_NOT_FOUND(2001,"你找的问题不存在，要不找其他问题试试！"),
    TARGET_PARAM_NOT_FOUND(2002,"未选中任何问题或评论进行回复"),
    NO_LOGIN(2003,"当前操作需要登录，请登录后重试"),
    SYS_ERROR(2004,"服务器出差去了，请稍后来访问哦"),
    TYPE_PARAM_WRONG(2005,"评论类型错误或不存在"),
    COMMENT_NOT_FOUND(2006,"你操作的评论不存在，要不找其他问题试试"),
    COMMENT_IS_EMPTY(2007,"输入内容不能为空"),
    READ_NOTIFICATION_FAIL(2008,"兄弟你要偷看别人信息呢？"),
    NOTIFICATION_NOT_FOUND(2009,"消息被恰了？"),
    FILE_UPLOAD_FAIL(2010,"图片上传失败");

    private Integer code;
    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    CustomizeErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
